﻿@model int?
@{
    ViewBag.Title = "预跑";
    Layout = "~/Views/Shared/_Master.cshtml";
}

<script type="text/javascript">
    $(document).ready(function () {
        if (processid) {
            $.ajax({
                url: "/ProcessRoll/GetProcess",
                type: 'GET',
                dataType: 'json',
                contentType: 'application/json; charset=utf-8',
                data: { processid: processid },
                success: function (result) {
                        previewprocess(result);
                }
            });
        }
    });
</script>

@Html.Hidden("processid", Model)
@Html.Hidden("activity", (int?)@ViewBag.ActivityID)
@Html.Hidden("Participant", null)
<h1>流程预跑</h1>
<fieldset class="preview-fieldset">
    <legend>流程发起人信息</legend>
    <table class="pre-table">
        <tr>
            <td >
                <span>
                    <label>
                        发起人：</label><input class="pre-applyer dyn-text" type="text" /></span>
            </td>
            <td >
                <span>
                    <label>
                        发起人部门</label><input class="pre-department dyn-text" type="text" /></span>
            </td>
            <td >
                <span>
                    <label>
                        代发人:</label><input class="pre-proxyapplyer dyn-text" type="text" /></span>
            </td>
            <td >
                <span>
                    <label>
                        职级：</label><input class="dyn-text" type="text" /></span>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset class="preview-fieldset">
    <legend>流程表单信息</legend>
    <table style="width: 100%">
        <tr>
            <td class="pre-formtd" colspan="4">
                <ul class="pre-form">
                </ul>
            </td>
        </tr>
    </table>
</fieldset>
<fieldset class="preview-fieldset">
    <legend>审批结果</legend>
    <ul class='approveul'></ul>
@*    <center>
        <div id="radio">
            <input type="radio" id="radio1" name="radio" /><label for="radio1">同意</label>
            <input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">不同意</label>
            <input type="radio" id="radio3" name="radio" /><label for="radio3">不同意但继续</label>
        </div>
    </center>*@
    <center id="appbutons"><input  type="button" id="pre-start" value="发起流程"/><span style="display:none" id="span-approve"><input type="button" class="pre-approve" id="pre-agree" value="同意"/><input type="button" class="pre-approve" id="pre-disagree" value="不同意"/><input id="pre-continute" class="pre-approve" type="button" value="不同意但继续"/></span></center>
</fieldset>
